package model;

import java.sql.Timestamp;

/**
 * The Class Picture.
 */
public class Picture {
	private Timestamp time;
	private int picid;
	private String url;
	private String description;
	
	 public Timestamp getTime(){
		 return time;
	 }
	 
	 public String getUrl(){
		 return url;
	 }
	 
	 public void setUrl(String url){
		 this.url = url;
	 }
	 
	 public void setTime(Timestamp time){
		 this.time = time;
	 }
	 
	 public int getPicid(){
		 return picid;
	 }
	 
	 public void setPicid(int picid){
		 this.picid = picid;
	 }
	 
	 public int getYear(){
		 return time.getYear()+1900;
	 }
	 
	 public int getMonth(){
		 return time.getMonth()+1;
	 }
	 
	 public int getDate(){
		 return time.getDate();
	 }
	 
	 public String getDescription(){
		 return description;
	 }
	 
	 public void setDescription(String description){
			 this.description = description;
	 }
	 
	 
	
	
}
